package com.coolingme.demo.passport.adapterv2.adpters;

import com.coolingme.demo.passport.ResultMsg;

/**
 * Token登录适配器
 *
 * @author wangyue
 * @date 2020-09-20 14:38
 */
public class LoginForTokenAdapter extends AbstractAdapter {
    @Override
    public boolean support(Object adapter) {
        return adapter instanceof LoginForTokenAdapter;
    }

    @Override
    public ResultMsg login(String id, Object adapter) {
        // TODO Token的登录逻辑
        return new ResultMsg(200, "success", "Token login success");
    }
}
